#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

class Human(object):
    country = "None"

    def __init__(self, name, age, country):
        self.name = name
        self.__age = age
        self.__country = country

    def change(self, name, age, country):
        if type(name) is not str:
            print("不是字符串")
            return
        self.name = name
        self.__age = age
        self.__country = country
        print("名称: {} 年龄:{} 国藉: {}".format(self.name, self.__age, self.__country))


hei = Human("小黑", 100, "天朝")
hei.change("abc", 99, "老米")
print(hei.__dict__)
